package com.study.concurrent.C_ThreadSynchronizationHelperClass.c_ManyRscourcesConcurrentControl;

/**
 * Created by 赵超 on 2017/3/25.
 */
public class Main {
    public static void main(String[] args) {
        PrintQueue printQueue = new PrintQueue();

        Thread[] threads = new Thread[10];
        for (int i = 0; i < threads.length; i++) {
            threads[i] = new Thread(new Job(printQueue), "Thread_" + i);
        }

        for (int i = 0; i < threads.length; i++) {
            threads[i].start();
        }
    }
}
